package com.inkyi.assistant.app.tools.base;

import javax.swing.*;
import java.util.ArrayList;

public class InkToolsListModel extends AbstractListModel<InkTools> {

    private final ArrayList<InkTools> toolsList = new ArrayList<>();

    @Override
    public int getSize() {
        return toolsList.size();
    }

    @Override
    public InkTools getElementAt(int index) {
        return toolsList.get(index);
    }

    public  void addTools(InkTools tools) {
        toolsList.add(tools);
    }
    public  void removeTools(InkTools tools) {
        toolsList.remove(tools);
    }
}
